package lab04.test02;

/**
 * Created by MECHREV on 2017/12/14.
 */
public class Threadone extends Thread {
    public  void run(){
        while (true) {
            //间隔一秒输出 hello，world
            System.out.println("Hello World!");
            //等一秒
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }}
}
